This archive contains replication files for the following paper:

"Umit, R. Rallies around the flag-draped coffins: the electoral effects of 
security force casualties in terror attacks"

This paper is conditionally accepted (pending replication) for publication 
in Political Science Research and Methods.

The analysis was conducted using Stata 16.1 and R 4.0.3, with the following  
directory structure:

working_directory/
 |
 +---analysis.do
 +---analysis.R
 |
 +---datasets/
 |       data_*
 |
 +---figures/
 |       
 |
 +---scripts/
 |       script_*
 |
 \---tables/

Note that while the subdirectorries datasets/ and scripts/ hold the files 
starting with the prefixes data_ and script_ respectively, the subdirectories 
figures/ and tables/ are empty before replication.
 
To replicate the results in the paper, while in the working directory with the
above structure, run the master scripts analysis.do in Stata and analysis.R in 
R. The results will be first displayed in Stata or R console, and then saved 
in the subdirectories figures/ or tables/.